/*    */ package com.finir.fakturisanje.forms;
/*    */ 
/*    */ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

import javax.swing.JLabel;
import javax.swing.Timer;
/*    */ 
/*    */ public class ClockLabel extends JLabel
/*    */   implements ActionListener
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */ 
/*    */   public ClockLabel()
/*    */   {
/* 20 */     super();
/* 21 */     Timer t = new Timer(1000, this);
/* 22 */     t.start();
/*    */   }
/*    */ 
/*    */   public void actionPerformed(ActionEvent ae)
/*    */   {
/* 27 */     DateFormat timeInstance = DateFormat.getTimeInstance(2, Locale.FRANCE);
/*    */ 
/* 31 */     setText("VREME: " + timeInstance.format(new Date()));
/*    */   }
/*    */ }

